# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=py3-construct
pkgver=2.9.45
pkgrel=1
pkgdesc="A powerful declarative symmetric parser/builder for binary data"
url="http://construct.readthedocs.org/"
arch="noarch"
license="MIT"
depends="python3"
makedepends="python3-dev py3-setuptools"
options="!check" # no tests
source="https://pypi.io/packages/source/c/construct/construct-$pkgver.tar.gz"
builddir="$srcdir/construct-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="630facbb719d2db976c1547d66f63037f38379110ff4f1f796bc51e1d2d3efd637b5349d46f171501d981a193bc06f0636832ffa82e0099b7262c407383c735b  construct-2.9.45.tar.gz"
